package com.medusa.aps.business.modules.plan.mp.entity;

import com.medusa.aps.business.model.BaseEntity;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * 甘特图-设备实体类
 *
 * @author yuxh
 * @since 2023-08-14 17:37:45
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class GanttChartequipment extends BaseEntity<GanttChartequipment> {
    /**
     * 主键
     */
    @Schema(description = "主键")
    private Integer id;
    /**
     * 设备编码
     */
    @Schema(description = "设备编码")
    private String deviceCode;
    /**
     * 设备名称
     */
    @Schema(description = "设备名称")
    private String deviceName;
    /**
     * 任务数
     */
    @Schema(description = "任务数")
    private Integer numberOfTasks;
    /**
     * 负荷率
     */
    @Schema(description = "负荷率")
    private Integer loadRate;

    /**
     * 获取主键值
     *
     * @return 主键值
     */
    @Override
    public Serializable pkVal() {
        return this.id;
    }
}

